package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

public interface EmployeeService {
    /**
     * 用户登录
     *
     * @param employee
     * @return
     */
    R<Employee> login(Employee employee);

    /**
     * 根据id查询用户数据
     *
     * @param id
     * @return
     */
    R<Employee> selectById(Long id);

    /**
     * 添加员工
     *
     * @param employee
     * @return
     */
    boolean save(Employee employee);

    /**
     * 分页查询员工数据
     *
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page<Employee> findByPage(Integer page, Integer pageSize, String name);

    /**
     * 修改员工数据
     *
     * @param employee
     * @return
     */
    boolean update(Employee employee);
}
